<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
        }
        header{
            height: 100px;
            border: 1px solid red;
            margin:0 auto;
            width: 1000px;
        }
        nav li {
            list-style: none;
            width: 80px;
            height: 30px;
            line-height: 30px;
            text-align: center;
            float: left;
            border: 1px solid blue;
        }
        a {
            text-decoration: none;
            color: #666;
        }
    </style>
</head>
<body>
    <header>
        <nav>
            <ul>
                <li><a href="#">首页</a></li>
                <li><a href="#">游戏</a></li>
                <li><a href="#">视频</a></li>
                <li><a href="#">动画</a></li>
                <li><a href="#">音乐</a></li>
            </ul>
        </nav>
    </header>
</body>
</html>